from django.db import models


class Category(models.Model):
	name = models.CharField(max_length = 20)
	
class Post(models.Model):
	title = models.CharField(max_length = 30)
	body = models.TextField()
	date = models.DateTimeField()
	category = models.ForeignKey(Category)
	
	def __unicode__(self):
		return self.title


class Favorites(models.Model):
	title = models.CharField(max_length = 50)		
		
		
class AboutMe(models.Model):
	body = models.TextField()
	

	
	